package com.sunrise.generico.util;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;

public class ContextUtil {
	
	
	@SuppressWarnings("deprecation")
	public static String obterRealPath(String caminhoBase){
		FacesContext context = FacesContext.getCurrentInstance();
		HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
		return request.getRealPath(caminhoBase);
	}

}
